<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name='apple-itunes-app' content="app-id=1183655170">
    <title>内容来自liver-care</title>
    <style>
        @import url('./css/common.css');
        .flag {
            background-color: #ff3657;
        }
    </style>
</head>

<body>
    <header>您已拒绝<span></span></header>
    <div>
        <div class="flag"><img src="./images/flag2.png" alt=""></div>
        <p class="title">您已拒绝回答来自患者A的问题</p>
        <p class="english">Thank you for your interest in patients with serious and responsible attitude and support to our products</p>
    </div>
    <script src="./lib/jquery-3.1.1.min.js"></script>
    <script src="./js/alertPopShow.js"></script>
    <script src="./js/common.js"></script>
    <script>
        var xhr = new XMLHttpRequest();
        xhr.open('GET', baseUrl + '/doctor/adoptTransferPatient.do?doctorId=' + GetQueryString(location.href,
                'doctorId') + '&patientId=' + GetQueryString(location.href, 'patientId') + '&code=' +
            GetQueryString(location.href, 'code') + '&adopt=' + GetQueryString(location.href, 'adopt'));
        xhr.onreadystatechange = function () {
            if (xhr.readyState == 4) {
                if (xhr.status == 200) {
                    var data = JSON.parse(xhr.responseText);
                    if (data.errorcode == 000000) {
                        webToast("拒绝成功", "middle", 3000);
                    } else {
                        webToast(data.errormsg, "middle", 3000);
                    }
                }
            }
        }
        xhr.send();
    </script>
</body>

</html>